.class Lcom/estrongs/android/pop/app/PopVideoPlayer$l;
.super Ljava/lang/Object;
.source "PopVideoPlayer.java"

# interfaces
.implements Landroid/view/MenuItem$OnMenuItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/PopVideoPlayer;->I()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/PopVideoPlayer;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$l;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onMenuItemClick(Landroid/view/MenuItem;)Z
    .locals 3

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$l;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/net/Uri;

    move-result-object p1

    invoke-virtual {p1}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object p1

    const-string v0, "file"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$l;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$l;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    .line 3
    invoke-static {v1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v1}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 4
    invoke-static {p1, v0}, Lcom/estrongs/android/util/l;->a(Landroid/content/Context;Ljava/io/File;)Landroid/net/Uri;

    move-result-object p1

    goto :goto_0

    .line 5
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$l;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/net/Uri;

    move-result-object p1

    .line 6
    :goto_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.SEND"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "video/*"

    .line 7
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "android.intent.extra.STREAM"

    .line 8
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 9
    invoke-static {p1}, Lcom/estrongs/android/pop/app/FileContentProvider;->c(Landroid/net/Uri;)Z

    move-result p1

    if-eqz p1, :cond_1

    const/4 p1, 0x3

    .line 10
    invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 11
    :cond_1
    :try_start_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$l;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$l;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    const v2, 0x7f110072

    .line 12
    invoke-virtual {v1, v2}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v1

    .line 13
    invoke-static {v0, v1}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 14
    :catch_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer$l;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->u(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Les/gz;

    move-result-object p1

    invoke-virtual {p1}, Les/gz;->a()V

    const/4 p1, 0x1

    return p1
.end method
